<div class = "main-view"><!--最外层div-->
    <div class="left-margin top-margin"><strong class="am-text-primary am-text-lg">总佣金>大使佣金>大使佣金订单详情一览</strong></div>
    <form class="am-form-inline left-margin top-margin" role="form">
        <button type="button" class="am-btn am-btn-default" ng-click="exportAmbassadorOrderDatas()"><span class="am-icon-download"></span> 导出</button>
        <button type="button" class="am-btn am-btn-default" onclick="history.back()">返回</button>
    </form>
    <br>
    <div id = "pagination" class = "pagination"></div>
    <div class="left-margin top-margin"><strong class="am-text-primary am-text-lg">{{user.nickName}}</strong></div>
    <div class="pagination-table left-margin" id="tab_menu" style = "margin-top: 0px;">
        <form class="am-form">
            <table class="am-table am-table-striped am-table-hover table-main">
                <thead>
                <tr>
                    <th class="table-id">订单id</th>
                    <th class="table-id">下单日期</th>
                    <th class="table-title">商品名称	</th>
                    <th class="table-title">商品单价</th>
                    <th class="table-title">商品数量</th>
                    <th class="table-title">订单优惠总价</th>
                    <th class="table-title">商品类目<br>佣金比例</th>
                    <th class="table-title">订单佣金</th>
                    <th class="table-title">分成比例</th>
                    <th class="table-title">结算状态</th>
                    <th class="table-title">订单状态</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="order in orderList" id="{{order.order_id}}">
                    <td width="158">{{order.order_id}}</td>
                    <td width="158">{{order.order_time | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td width="208">{{order.sku_name}}</td>
                    <td>{{order.price}}</td>
                    <td>{{order.skuQuantity}}</td>
                    <td>{{order.skuSubTotal}}</td>
                    <td>{{order.commissionPercent?(order.commissionPercent*100).toFixed(2)+'%':'0%'}}</td>
                    <td>{{doCommission(order, user.objId)}}</td>
                    <td>
                        {{commissionDrawPercentage(order,user.objId)}}
                    </td>
                    <td>{{doBalanceStatus(order,user.objId)}}
                    </td>
                    <td>
                        <!-- （已取消-0,新建-1,待支付-2,拣货中-3,待发货-4,待收货-5,已收货-6,申请取消-8,取消中（等第三方确认）-9,退款完成-100） -->
                        {{order.status==0?"已取消":""}}
                        {{order.status==1?"新建":""}}
                        {{order.status==2?"待支付":""}}
                        {{order.status==3?"拣货中":""}}
                        {{order.status==4?"待发货":""}}
                        {{order.status==5?"待收货":""}}
                        {{order.status==6?"已收货":""}}
                        {{order.status==8?"申请取消":""}}
                        {{order.status==9?"取消中":""}}
                        {{order.status==10?"退款完成":""}}
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>

    <div class = "left-margin">共<span id = 'page_number'>{{pageNumber}}</span>页 <span>{{count}}条数据</span></div>


</div>
